package server

import akka.actor.{Props, ActorSystem}
import com.typesafe.config.ConfigFactory

/**
 * Created by sjzx on 2016/5/16.
 */
object ServerMain extends App {
  val config = ConfigFactory.load().getConfig("server") // load the server config in the application.conf
  val system = ActorSystem("serverSys", config)
//  println(config)
  val serveractor = system.actorOf(Props(new ServerActor()), "serveractor")
  println(serveractor.path)
  serveractor ! "server start..."
}
